#include <stdio.h>
#include <string.h>
//计算表达式的值
int main()
{
    int i = 0;
    float shu[10];
    char fu[10] = {'0'};
    int sz = 0;
    float ret = 0;
    for(i = 0;i < 10;i++)
    {
        scanf("%f", &shu[i]);
        scanf("%c", &fu[i]);
        if(fu[i] == '\n')
        break;
    }
    ret = 1.0*shu[0];
    sz = strlen(fu);
    for(i = 0;i < sz;i++)
    {
        switch(fu[i])
        {
            case 42:
            ret *= 1.0*shu[i+1];
            break;
            case 43:
            ret += 1.0*shu[i+1];
            break;
            case 45:
            ret -= 1.0*shu[i+1];
            break;
            case 47:
            ret /= 1.0*shu[i+1];
            break;
            default:
            break;
        }
    }
    printf("%.1f", ret);
    return 0;
}